import request from '@/utils/request'

// 查询设备台账列表
export function listLedger(query) {
  return request({
    url: '/swla2/deviceLedger/list',
    method: 'get',
    params: query
  })
}

// 查询设备台账详细
export function getLedger(id) {
  return request({
    url: '/basedata/ledger/' + id,
    method: 'get'
  })
}

// 新增设备台账
export function addLedger(data) {
  return request({
    url: '/basedata/ledger',
    method: 'post',
    data: data
  })
}

// 修改设备台账
export function updateLedger(data) {
  return request({
    url: '/basedata/ledger',
    method: 'put',
    data: data
  })
}

// 删除设备台账
export function delLedger(id) {
  return request({
    url: '/basedata/ledger/' + id,
    method: 'delete'
  })
}



export function listForGJAddLedger(query) {
  return request({
    url: '/swla2/deviceLedger/listForGJAddLedger',
    method: 'get',
    params: query
  })
}

